/*! \file BufferLocker.h
 *	\brief <write description for BufferLocker.h>
 *
 *	created:	2010/12/13
 *	created:	13:12:2010   10:21
 *	filename: 	C:\src\tactics-engine\libs\gd\BufferLocker.h
 *	file path:	C:\src\tactics-engine\libs\gd
 *	file base:	BufferLocker
 *	file ext:	h
 *	author:		Vitalii Trubchaninov
 *				vitalii.trubchaninov@ubisoft.com
 */

#ifndef _gd_BUFFERLOCKER_H_
#define _gd_BUFFERLOCKER_H_

#pragma once

#include <core/noncopyable.h>

namespace tt{
namespace gd{

class Buffer;
class DeviceContext;

class BufferLocker : NonCopyable
{
public:
	BufferLocker(DeviceContext*, Buffer&);
	~BufferLocker();

private:
	DeviceContext* m_deviceContext;
	Buffer& m_buffer;
};

} //namespace gd
} //namespace tt

#endif //_gd_BUFFERLOCKER_H_